From: Georges Basile Stavracas Neto Date: Fri, 15 Dec 2023 20:23:51 +0000 (-0300) Subject: screenshot: Add SCREENSHOT_ONLY UI mode X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~210 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=75dafd8d9cba28c9301ec40fb849791e05cfa71d;p=gnome-shell.git screenshot: Add SCREENSHOT_ONLY UI mode Add a screenshot-exclusive mode that makes the screencast button unreactive, and therefore disables screencasting. It doesn't change the visibility of the button though, as that's done by the codepath that checks if screencasting is supported. This will be used by the D-Bus callback to take interactive screenshots. Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index cfd5fbd85..634f09feb 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1048,6 +1048,7 @@ class UIWindowSelector extends St.Widget { const UIMode = { SCREENSHOT: 0, SCREENCAST: 1, + SCREENSHOT_ONLY: 2, }; export const ScreenshotUI = GObject.registerClass({ @@ -1542,6 +1543,7 @@ export const ScreenshotUI = GObject.registerClass({ return; this._castButton.checked = mode === UIMode.SCREENCAST; + this._castButton.reactive = mode !== UIMode.SCREENSHOT_ONLY; if (!this.visible) { // Screenshot UI is opening from completely closed state